﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Example01_CSharp
{
    class CRectangle
    {
        int width;
        int height;
        public void Setvalues(int a, int b)
        {
            width =   a;
            height= b;
        }
        public int area()
        {
            return (width * height);
        }
    }
    class Program
    {
        static void Main(string[] args)
        {
            CRectangle rect = new CRectangle();
            rect.Setvalues(3, 4);
            Console.WriteLine("area:{0} ", rect.area());
        }
    }
}
